package com.zx.cloud.controller.client;


import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zx.cloud.ApiVersion;
import com.zx.cloud.domain.Consultation;
import com.zx.cloud.domain.Shop;
import com.zx.cloud.model.response.ObjectDataResponse;
import com.zx.cloud.util.Page;

import feign.Headers;

/**
 * @Description:
 *
 * @author       Yan Weiwei
 * @Create Time: 2017年11月1日下午1:35:28
 */
@FeignClient(name = ShopClient.SERVICE_ID, fallback = ShopClientFallback.class)
public interface ShopClient {

	/**
     * eureka service name
     */
    String SERVICE_ID = "trade-provider";
    
    @Headers("X-Auth-Token:{X-Auth-Token}")
    @RequestMapping(value =ApiVersion.PROVIDER_V1_PREFIX+"/shop/queryClientInfo", method = RequestMethod.POST)
    ObjectDataResponse<Page<Object>> queryClientInfo(Shop shop);
    
	@Headers("X-Auth-Token:{X-Auth-Token}")
	@RequestMapping(value = ApiVersion.PROVIDER_V1_PREFIX + "/shop/addClientInfo", method = RequestMethod.POST)
	ObjectDataResponse<Integer> addClientInfo(Shop shop);
	
	@Headers("X-Auth-Token:{X-Auth-Token}")
	@RequestMapping(value = ApiVersion.PROVIDER_V1_PREFIX + "/shop/deletClientInfo", method = RequestMethod.POST)
	ObjectDataResponse<Integer> deletClientInfo(Shop shop);
}
